using System;
using WindowsInstaller;
using System.EnterpriseServices.Internal;
//http://remotegacutil.codeplex.com/
namespace TestApp {
	public class InstallerTest {

		static void MainX() {


			//GAC local
			//Publish p=new Publish();
			//p.GacInstall("Ionic.Zip.dll");
			//p.GacRemove("Ionic.Zip.dll");

			Type type=Type.GetTypeFromProgID("WindowsInstaller.Installer");
			Installer installer=(Installer)Activator.CreateInstance(type);
			
			//foreach(string str in installer.Products)
			//{
			//  Console.WriteLine(str);
			//}
			installer.UILevel=MsiUILevel.msiUILevelNone;

			installer.InstallProduct("Next.Whs.PWMS.PWMSApp.Installer.msi",null);
			installer.InstallProduct("Next.Whs.PWMS.PWMSApp.Installer.msi","REMOVE=ALL");

		}
	}
}